package com.java28.service.impl;

import com.java28.mapper.DeptMapper;
import com.java28.pojo.Dept;
import com.java28.service.DeptService;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {

    @Resource
    DeptMapper deptMapper;

    @Override
    public List<Dept> list() {
        return deptMapper.selectAll();
    }
}
